<!-- 美业专属门店首跳转-->
<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		props: ['tab'],
		created() {
			var that = this
			uni.setStorageSync('tab',1)
			if (this.tab) {
				let path = uni.getStorageSync('path')
				if (path == '13') {
					uni.clearStorage('path')
				} else {
					that.$http.post({
						url: '/SRA_simMallApi/getUserBindId',
						data: {
							vId: uni.getStorageSync("vid")
						}
					}).then(res => {
						if (res.code == 100) {
							uni.navigateTo({
								url: '../store/storeIndex?shop_id=' + res.data.userBindId
							})
						}
					})
				}
			}
			
		},
	}
</script>
